﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeaven.Entity.Accounts;
using Jzy.Core.Common;
using FortuneHeaven.DAL.Accounts;

namespace FortuneHeaven.BLL.Accounts
{
    public class ScoreHistoryBO : CommonOperate<ScoreHistoryInfo>
    {
        private ScoreHistoryDAL _scoreHistory;
        public ScoreHistoryBO()
        {
            _scoreHistory = new ScoreHistoryDAL();
            base.dbOper = _scoreHistory.dbOper;
        }

        public long GetTotalAddScore(int netBarID)
        {
            return _scoreHistory.GetTotalAddScore(netBarID);
        }

        public long GetTodayAddScore(int netBarID, DateTime today)
        {
            return _scoreHistory.GetTodayAddScore(netBarID, today);
                
        }
        public long GetTotalSubScore(int netBarID)
        {
            return _scoreHistory.GetTotalSubScore(netBarID);
        }

        public long GetTodaySubScore(int netBarID, DateTime today)
        {
            return _scoreHistory.GetTodaySubScore(netBarID, today);

        }
    }
}
